package cn.yinyu.queue.module.ecg.service.queue;

import cn.yinyu.queue.framework.common.exception.ErrorCode;

import java.util.concurrent.Callable;

public class BedReloadCallable implements Callable<ErrorCode> {

    QueueServiceTxFunctions queueService;

    public BedReloadCallable(QueueServiceTxFunctions queueService)
    {
        super();
        this.queueService = queueService;
    }

    public ErrorCode call() throws Exception {
        ErrorCode ec = queueService.bedReload();

        queueService.monitorInfo();
        return ec;
    }

}
